/**
 * Assignment 2 - Pub crawl
 * Authors: Huy Nguyen (3430069)    James Gregory (3288801)
 */
#ifndef PUB_H

#define PUB_H

#define ROOT 0
#define GAME_CONTINUE 0
#define GAME_WON_BY_BODYGUARD 1
#define GAME_WON_BY_DELEGATE 2

#define BODYGUARD_ID_OFFSET 1000

int delegate_pub_vote(void);
int bodyguard_pub_vote(int delegate_group_id);
int delegate_wench_vote(int *wench_nominations);
int bodyguard_wench_vote(int delegate_vote, int *wench_nominations, int delegate_group_id);
void bodyguard_process_vote(int *vote, int sender);
int bodyguard_vote_secret(void);
void delegate_nominate(int *wench_nominations);
void bodyguard_nominate(int *wench_nominations);
int tally_votes(int *votes);

void game_master(void);
void join_game(void);
#endif
